	<!--kaixin001 login code-->
	<script src="http://rest.kaixin001.com/api/FeatureLoader_js.php" type="text/javascript"></script>
	<script type="text/javascript">
		function kx001_onlogin() {
			 window.location.href="<!--{eval echo base_url().'login/kaixin_login'}-->";
		}
		function kx001_onlogout() {
			window.location.href="<!--{eval echo base_url().'logout';}-->"; 
		}

	</script>
	<!--kaixin001 login code-->
	<!--{if $member}-->
          	<div class="user_info">            
	            <div class="user_pic">
		          	 <a href="{$member['weibo_url']}" title="$site_config[sitename] 欢迎您,{$member['username']}">
						<!--{if $member[avatar]}-->
							<img src="<!--{$member[avatar]}-->" alt="{$member['username']}" width="50"/>
						<!--{else}-->
							<img src="<!--{eval echo base_url().'resources/images/none.gif'}-->" alt="{$member['username']}" width="50"/>
						<!--{/if}-->
					</a>
				</div>
					<div class="username">{$member['username']}</div>
			<!--{if $member['from'] == 'kaixin'}-->
				<div class="username">
				<a id="kx001_btn_login" ></a>
				<script type="text/javascript">
					KX001.init("{KX_WB_AKEY}", "/resources/kx001_receiver.html","", '退出', 1);
				</script>
				</div>
			<!--{else}-->
				<div class="username"><a href="<!--{eval echo base_url();}-->logout/">退出</a></div>
			<!--{/if}-->
				<div class="username"><a href="<!--{eval echo base_url();}-->home/collection">我的收藏</a></div>
            </div>
	<!--{else}-->
	<h2>登录第6街区</h2>
	<ul class="denglu">
		<li><a href="<!--{eval echo base_url();}-->linked/sina" title="用新浪微博登录"><img src="<!--{eval echo base_url();}-->resources/images/sina0.gif" width="37" height="37" title="用新浪微博登录" alt="用新浪微博登录"></a></li>
		<li><a href="<!--{eval echo base_url();}-->linked/qq" title="用腾讯微博登录"><img src="<!--{eval echo base_url();}-->resources/images/tengxun0.gif" width="37" height="37" title="用腾讯微博登录" alt="用腾讯微博登录"></a></li>
		<!--kaixin 001 login start-->
		<li><a id="kx001_btn_login" title="用开心网账户登录"></a></li>
		<script type="text/javascript">
		KX001.init("{KX_WB_AKEY}", "/resources/kx001_receiver.html",'<img src="<!--{eval echo base_url();}-->resources/images/kaixin001.gif" width="37" height="37" />', '退出', 1);
		</script>
		<!--kaixin 001 login end-->			

	</ul>

	<!--{/if}-->

